package top.byteio.common.core.constants;

import lombok.experimental.UtilityClass;

/**
* 缓存的key 常量
* @author lerryxia
*/
@UtilityClass
public final class CacheConstants {

    /**
     * jwt 缓存前缀
     */
    public static final String JWT_CACHE = "TOKEN_JWT::";

    /**
     * TOKEN 授权码缓存前缀
     */
    public static final String TOKEN_CODE = "TOKEN_CODE::";

    /**
     * oauth2前缀
     */
    public static final String OAUTH2_SATE = "TOKEN_STATE::";

	/**
	 * ACCESS_TOKEN 缓存前缀
	 */
	public static final String OAUTH_ACCESS = "TOKEN_ACCESS::";

    /**
     * REFRESH_TOKEN 缓存前缀
     */
    public static final String REFRESH_TOKEN = "TOKEN_REFRESH::";

	/**
	 * 验证码前缀
	 */
	public static final String CAPTCHA_CODE = "CAPTCHA_CODE::";

    /**
     * 权限缓存
     */
    public static final String PERMISSION = "PERMISSION::";


	/**
	 * 用户组缓存
	 */
	public static final String GROUP_DETAILS = "GROUP_DETAILS::";

	/**
	 * 用户信息缓存
	 */
	public static final String USER_DETAILS = "USER_DETAILS::";

	/**
	 * 角色信息缓存
	 */
	public static final String ROLE_DETAILS = "ROLE_DETAILS::";

	/**
	 * oauth 客户端信息
	 */
	public static final String CLIENT_DETAILS = "CLIENT_DETAILS::";


}
